﻿import QtQuick          2.15
import QtQuick.Layouts  1.15

MapPopupDialog {
    property var map
    property alias  text:           label.text
    property var    acceptFunction: null        // Mainly used by MainRootWindow.showMessage to specify accept function in call

    onAccepted: {
        if (acceptFunction) {
            acceptFunction()
        }
    }

    ColumnLayout {
        MapLabel {
            id:                     label
            Layout.maximumWidth:    map.width / 3
            wrapMode:               Text.WordWrap
        }
    }
}
